﻿using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;

namespace Service.Core.Identity.Model
{
    public class CustomTokenResponse
    {
        public CustomTokenResponse(string access_Token, double expires_In, string token_Type, string refresh_Token, bool isNeedUpPwd)
        {
            Access_Token = access_Token;
            Expires_In = expires_In;
            Token_Type = token_Type;
            Refresh_Token = refresh_Token;
            IsNeedUpPwd = isNeedUpPwd;
        }

        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("access_token")]
        public String Access_Token { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        [JsonProperty("expires_in")]
        public double Expires_In { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        [JsonProperty("token_type")]
        public String Token_Type { get; set; }

        [JsonProperty("refresh_token")]
        public String Refresh_Token { get; set; }

        /// <summary>
        /// 是否需要更改密码
        /// </summary>
        public bool IsNeedUpPwd { get; set; }

    }
}
